package com.sunshine.spring.aop.advice.before;

/**
 *
 * @Author: WeiHong
 * @Date: 2017/3/23 13:53
 */
public class CustomerService {

    private String name;

    private String url;

    public void setName(String name) {
        this.name = name;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void printName(){
        System.out.println("Customer name : " + this.name);
    }

    public void printUrl(){
        System.out.println("Customer url : " + this.url);
    }

    public void printThrowException(){
        throw new IllegalArgumentException();
    }

    @Override
    public String toString() {
        return "CustomerService{" +
                "name='" + name + '\'' +
                ", url='" + url + '\'' +
                '}';
    }

}
